<?php
namespace Home\Controller;
use Think\Controller;
class FormController extends Controller {
    public function index(){
        $db= M('Form');
        $result = $db->select();
        $this->assign('list',$result);
        $this->display();
    }

    public function add(){
    	$this->display();
    }
    
    public function insert(){
        $db  = M('Form');
        $data['title'] = I('post.title');
        $date['content'] = I('post.content');
        $data['create_time'] = time();
        $db->add($data);
    }
    public function del(){
        $db = M('Form');
        $db->delete(3);
    }
    public function vco(){
        $config = array(
            'fontSize'  =>   30,
            'length'    =>   5,
            'useNoise'  =>   false,
            'useZh'     =>   true,
            'fontttf'   =>   'STXINGKA.TTF',
            );

   $Verify = new \Think\Verify($config);
   $Verify->entry();
    }
}